Shortcuts

On Windows, keyboard shortcuts are generally native Windows like.
Selecting text
The are three ways to select text:

- to select a sequence of characters, single-click a character and drag the mouse
- to select a sequence of words, double-click on a word and drag the mouse
- to select a sequence of lines, triple-click on a line and drag the mouse

Word completion
<Shift+tab> completes a word if the word already occurs in the loaded file.
Matching parentheses and quotes
Double-clicking close to any of the following language elements causes the Source Editor to mark the code between this item and its matching one:

single quotes | -- ' --
double quotes | -- " --
parentheses | -- ( --
brackets | -- [ --
braces | -- { --

Copying/moving text
Drag-and-drop copying/moving
You can drag text from one position to another by selecting it with the mouse and then dragging it. If you want to copy text rather than move it, hold down the

<CTRL> key while dragging the text.

- On Unix, a fast copy command is available. To use it, press the

<SHIFT> and <CTRL> keys at the same time and select text. The selected text is then inserted at the current cursor position.
Keyboard shortcuts
The following table shows the Source Editor's cursor navigation keyboard shortcuts

Cursor navigation | Keyboard shortcut
--- | ---
Normal | Emacs-like
Word forward | <SHIFT> cursor-right | <ESC> f
Word backward | <SHIFT> cursor-left | <ESC> b
Beginning of line | <CTRL> cursor-left | <CTRL> a
End of line | <CTRL> cursor-right | <CTRL> e
Page down | <PageDown> or <SHIFT> cursor-down | <CTRL> v
Page up | <PageUp> or <SHIFT> cursor-up | <ESC> v
Beginning of file | <Home> or <CTRL> cursor-up |
Bottom of file | <End> or <CTRL> cursor-down |
Start/End cursor text selection | <CTRL> <Space> |

The following table shows the Source Editor's text modification keyboard shortcuts

Text modification | Keyboard shortcut
--- | ---
Normal | Emacs-like
Delete left of cursor | <Backspace> |
Delete right of cursor | <Delete> | <CTRL> d
Delete from cursor to end of line |  | <CTRL> k
Delete word right of cursor | <CTRL><Backspace> | <ESC> d
Delete word left of cursor | <SHIFT><Backspace> | <ESC> <Backspace>
Zap (delete from cursor to right until character) |  | <ESC> z character
Cut | <Meta> x | <CTRL> x <CTRL> x
Copy | <Meta> c | <CTRL> x <CTRL> c
Paste | <Meta> v | <CTRL> x <CTRL> v
Undo | <Meta> z | <CTRL> /
Redo |  | <CTRL> ?

Keystroke macros
The SNiFF+ Source Editor can remember keystrokes in a macro. The following table shows how to define and execute a macro:

Macro | Keyboard shortcut
Start macro | <CTRL+x> (
End macro | <CTRL+x> )
Execute macro | <CTRL+x> e